package com.gzhu.knowledgeAdmin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gzhu.knowledgeAdmin.common.vo.RoleVo;
import com.gzhu.knowledgeAdmin.entity.Role;
import io.swagger.models.auth.In;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2020-01-12
 */
public interface RoleService extends IService<Role> {

    //根据用户获取角色数据
    RoleVo findRoleByUserId(Integer userId);

    //根据用户分配角色
    void saveUserRoleRealtionShip(Integer userId, String roleId);

    void removeRoleById(String id);

    void removeBatchByRoleIds(List<String> idList);

    Page<Role> getPageList(Long page, Long limit, Role role);

    void saveRole(Role role);

    List<String> getRolePermissionIds(String roleId);
}
